<?php 
	include_once 'checkloginstatus.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
	<title>瑞邦晟达科技</title>
	<link href="css/login.css" rel="stylesheet" />
</head>
<body id="left_nav">
	<div id="NavContainer"></div>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="../js/TreeBySHF/TreeBySHF.js"></script>
<script type="text/javascript">
    function LoadAjaxData(ServiceURL,strData, objFuncName, isCached) {
        $.ajax({
            url: ServiceURL,
            type: "POST",
            dataType: "json",
            cache: isCached,
            success: function (data) {
                objFuncName(data);
            },
            error: function (jqXHR) {
                document.write(jqXHR.responseText);
                //alert(jqXHR.responseText);
            }
        })
    }

    $(document).ready(function(){
        LoadTree();
    })
    
    //加载语法树数据
    function LoadTree() {
        LoadAjaxData("NavListManage.php","", BindTree, true);
    }
    //绑定树性菜单
    function BindTree(data)
    {
        $.TreeBySHF.BindTree({ tvData: data, TreeContainerID: "NavContainer" });
    }
</script>
</body>
</html>